package com.yihuier.yihuier.Service.UserManager;

import com.yihuier.yihuier.Mapper.UserManager.QuestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class QuestionService {

    @Autowired
    private QuestionMapper questionMapper;

    /**
     * 根据question_id获得密保编号及答案
     */
    public String getquestion(int question_id) {
        return questionMapper.selectquestion(question_id);
    }

    public List<Map<String,String>> getQuestions(){
        return questionMapper.selectQuestions();
    }
}
